-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: Resource tags don't propagate to frontend NLB #4279 #4328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Resource tags don't propagate to frontend NLB #4279 #4328
Conversation
|
Welcome @praddy26! |
Hi @praddy26. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
6762ff5
to
1f48e38
Compare
1f48e38
to
3b1f87b
Compare
/test |
@praddy26: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/ok-to-test |
} | ||
|
||
// If no frontend-nlb specific tags are found, use the ALB tags | ||
if frontendNlbTags == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of redefining the logic to generate ALB tags, can you re-use this function?
https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/main/pkg/ingress/model_build_load_balancer.go#L399-L405
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing that out @zac-nixon. I have updated the code to re-use the same.
4d4b18f
to
f48d163
Compare
Signed-off-by: Pradeep Lakshmi Narasimha <[email protected]>
f48d163
to
1b5b4b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approved
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: praddy26, zac-nixon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue
Closes #4279
Description
This PR implements tag propagation from Application Load Balancer (ALB) to frontend Network Load Balancer (NLB) in the AWS Load Balancer Controller. The changes provide two ways to handle tags for frontend NLBs:
alb.ingress.kubernetes.io/frontend-nlb-tags
to specify tags that should be applied only to the frontend NLBalb.ingress.kubernetes.io/tags
) are automatically propagated to the frontend NLBKey features implemented:
Implementation details:
buildFrontendNlbTags
functionExample usage: